package com.kyzh.core.activities

import android.os.Bundle
import com.gushenge.core.base.activity.BaseActivity
import com.kyzh.core.R
import com.kyzh.core.adapters.PointDetailTabAdapter
import kotlinx.android.synthetic.main.activity_pointdetail.*
import kotlinx.android.synthetic.main.titlebar.*

class BillActivity : BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_pointdetail)
        initView()
    }

    private fun initView() {
        close.setOnClickListener { finish() }
        tvTitle.text = getString(R.string.myBill)
        viewPager.adapter = PointDetailTabAdapter(this@BillActivity, arrayListOf(getString(R.string.gamePay),getString(R.string.ptbPay)), 0)
        viewPager.currentItem = 0
        tabLayout.setupWithViewPager(viewPager)
        tvPoint.text = getString(R.string.amount)
        tvSummary.text = getString(R.string.remarks)
    }
}
